import request from '@/utils/request'

// 查询活动参加记录列表
export function listMemberTrainActivity(query) {
  return request({
    url: '/member/memberTrainActivity/list',
    method: 'get',
    params: query
  })
}

// 查询活动参加记录详细
export function getMemberTrainActivity(id) {
  return request({
    url: '/member/memberTrainActivity/' + id,
    method: 'get'
  })
}

// 新增活动参加记录
export function addMemberTrainActivity(data) {
  return request({
    url: '/member/memberTrainActivity',
    method: 'post',
    data: data
  })
}

// 修改活动参加记录
export function updateMemberTrainActivity(data) {
  return request({
    url: '/member/memberTrainActivity',
    method: 'put',
    data: data
  })
}

// 删除活动参加记录
export function delMemberTrainActivity(id) {
  return request({
    url: '/member/memberTrainActivity/' + id,
    method: 'delete'
  })
}
